package com.cloud.portmana.web;
//离线统计
import java.util.Map;


//离线统计
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.cloud.portmana.ModuleConstant;
import com.cloud.portmana.dto.BgCycleThreeDS;
import com.cloud.portmana.entity.dao.IBgStatisticsManaSaleDao;
import com.cloud.portmana.ser.IBgStatisticsManaHoldService;
import com.cloud.portmana.ser.IBgStatisticsManaSaleService;
import com.cloud.sysmana.dto.SysStore;
import com.cloud.util.base.BaseAction;
import com.cloud.util.base.IUserInfo;
import com.cloud.util.page.PageInfo;
@Controller
@RequestMapping("bgCycleStatisticsManaHold")
public class BgCycleStatisticsManaHoldAction extends BaseAction{
	@Resource(name="bgStatisticsManaHoldService")
	private IBgStatisticsManaHoldService bgStatisticsManaHoldService;
//	@RequestMapping("listhold.do")
//	public String listhold(ModelMap modelMap,PageInfo pageInfo,HttpServletRequest request){	
//			IUserInfo userInfo=getUserInfo(request);
//			Map<String,String> globalVariableCacheMap = getGlobalVariableCache(request);
//			System.out.println("globalVariableCacheMap==="+globalVariableCacheMap.get(ModuleConstant.GLOBAL_VARIABLE_OFFLINE_TIME));
//			
//			System.out.println(userInfo.getUserId());
//			pageInfo = bgStatisticsManaHoldService.getPageInfo(pageInfo,userInfo,globalVariableCacheMap);
//			modelMap.put("pageInfo",pageInfo );
//			
//			return getViewsModelPathSys(ModuleConstant.MODEL_PATH+"bgCycleStatisticsMana/bgCycleStatisticsManaHold/holdList");
//		
//	}

	/**
	 * 用户列表
	 * @return
	 */
	@RequestMapping("listhold.do")
	public String listhold(ModelMap modelMap, PageInfo pageInfo){
		
		PageInfo retPageInfo = bgStatisticsManaHoldService.listUserPage(pageInfo);
		modelMap.put("pageInfo", retPageInfo);

		return getViewsModelPathSys(ModuleConstant.MODEL_PATH+"bgCycleStatisticsMana/bgCycleStatisticsManaHold/holdList");		
	}
}
